package com.cx.service.impl;

import com.cx.dto.HotelIndex;
import com.cx.dto.HotelRecommend;
import com.cx.mapper.BrandMapper;
import com.cx.service.BrandMapperService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandMapperServiceImpl implements BrandMapperService {
    @Autowired
    BrandMapper brandMapper;
    @Override
    /**
     * 根据品牌名称搜索出品牌首页的对应信息
     */
    public HotelIndex selectByBrand(String brandName) {
        return brandMapper.selectByBrand(brandName);
    }
    @Override
    /**
     * 根据品牌名称搜索出对应的推荐酒店
     */
    public List<HotelRecommend> selectByBrandName(String brandName) {
        return brandMapper.selectByBrandName(brandName);
    }
}
